package com.tsmti.activiti.service.impl;

import com.tsmti.activiti.entity.ExtendActNodeField;
import com.tsmti.activiti.service.ExtendActNodeFieldService;
import com.tsmti.core.common.service.impl.BaseServiceImpl;
import com.tsmti.core.util.StringUtils;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * @Package：com.tsmti.activiti.service.impl
 * @Class：ExtendActNodeFieldServiceImpl
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/8/16 15:31
 * @Company:
 * @Version：
 * @Modified By:
 *
 */
@Service("extendActNodefieldService")
@Transactional(rollbackFor = Exception.class)
public class ExtendActNodeFieldServiceImpl  extends BaseServiceImpl<ExtendActNodeField> implements ExtendActNodeFieldService {

	@Override
	public List<ExtendActNodeField> queryByNodes(List<String> nodes) {
		Map<String,Object> params = new HashMap<>(16);
		params.put("nodes",nodes);
		return findByAliasHql(" from ExtendActNodeField where nodeId in (:nodes)",params);
	}
}
